/**
 */
package ConnectorGenerator.Signature.impl;

import ConnectorGenerator.Auxiliary.AuxiliaryPackage;

import ConnectorGenerator.Auxiliary.impl.AuxiliaryPackageImpl;

import ConnectorGenerator.CommunicationStyle.CommunicationStylePackage;

import ConnectorGenerator.CommunicationStyle.impl.CommunicationStylePackageImpl;

import ConnectorGenerator.ConnectorArchitecture.ConnectorArchitecturePackage;

import ConnectorGenerator.ConnectorArchitecture.impl.ConnectorArchitecturePackageImpl;

import ConnectorGenerator.ConnectorGeneratorPackage;

import ConnectorGenerator.DRD.DRDPackage;

import ConnectorGenerator.DRD.impl.DRDPackageImpl;

import ConnectorGenerator.ElementArchitecture.ElementArchitecturePackage;

import ConnectorGenerator.ElementArchitecture.impl.ElementArchitecturePackageImpl;

import ConnectorGenerator.Feature.FeaturePackage;

import ConnectorGenerator.Feature.impl.FeaturePackageImpl;

import ConnectorGenerator.Signature.Signature;
import ConnectorGenerator.Signature.SignatureFactory;
import ConnectorGenerator.Signature.SignaturePackage;
import ConnectorGenerator.Signature.SignatureTerm;
import ConnectorGenerator.Signature.SignatureTermParameter;

import ConnectorGenerator.impl.ConnectorGeneratorPackageImpl;

import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;

import org.eclipse.emf.ecore.impl.EPackageImpl;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Package</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class SignaturePackageImpl extends EPackageImpl implements SignaturePackage {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass signatureTermEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass signatureEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass signatureTermParameterEClass = null;

	/**
	 * Creates an instance of the model <b>Package</b>, registered with
	 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
	 * package URI value.
	 * <p>Note: the correct way to create the package is via the static
	 * factory method {@link #init init()}, which also performs
	 * initialization of the package, or returns the registered package,
	 * if one already exists.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see org.eclipse.emf.ecore.EPackage.Registry
	 * @see ConnectorGenerator.Signature.SignaturePackage#eNS_URI
	 * @see #init()
	 * @generated
	 */
	private SignaturePackageImpl() {
		super(eNS_URI, SignatureFactory.eINSTANCE);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static boolean isInited = false;

	/**
	 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
	 * 
	 * <p>This method is used to initialize {@link SignaturePackage#eINSTANCE} when that field is accessed.
	 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #eNS_URI
	 * @see #createPackageContents()
	 * @see #initializePackageContents()
	 * @generated
	 */
	public static SignaturePackage init() {
		if (isInited) return (SignaturePackage)EPackage.Registry.INSTANCE.getEPackage(SignaturePackage.eNS_URI);

		// Obtain or create and register package
		SignaturePackageImpl theSignaturePackage = (SignaturePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof SignaturePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new SignaturePackageImpl());

		isInited = true;

		// Obtain or create and register interdependencies
		ConnectorGeneratorPackageImpl theConnectorGeneratorPackage = (ConnectorGeneratorPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ConnectorGeneratorPackage.eNS_URI) instanceof ConnectorGeneratorPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ConnectorGeneratorPackage.eNS_URI) : ConnectorGeneratorPackage.eINSTANCE);
		AuxiliaryPackageImpl theAuxiliaryPackage = (AuxiliaryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AuxiliaryPackage.eNS_URI) instanceof AuxiliaryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AuxiliaryPackage.eNS_URI) : AuxiliaryPackage.eINSTANCE);
		DRDPackageImpl theDRDPackage = (DRDPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DRDPackage.eNS_URI) instanceof DRDPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DRDPackage.eNS_URI) : DRDPackage.eINSTANCE);
		CommunicationStylePackageImpl theCommunicationStylePackage = (CommunicationStylePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommunicationStylePackage.eNS_URI) instanceof CommunicationStylePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommunicationStylePackage.eNS_URI) : CommunicationStylePackage.eINSTANCE);
		FeaturePackageImpl theFeaturePackage = (FeaturePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(FeaturePackage.eNS_URI) instanceof FeaturePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(FeaturePackage.eNS_URI) : FeaturePackage.eINSTANCE);
		ConnectorArchitecturePackageImpl theConnectorArchitecturePackage = (ConnectorArchitecturePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ConnectorArchitecturePackage.eNS_URI) instanceof ConnectorArchitecturePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ConnectorArchitecturePackage.eNS_URI) : ConnectorArchitecturePackage.eINSTANCE);
		ElementArchitecturePackageImpl theElementArchitecturePackage = (ElementArchitecturePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ElementArchitecturePackage.eNS_URI) instanceof ElementArchitecturePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ElementArchitecturePackage.eNS_URI) : ElementArchitecturePackage.eINSTANCE);

		// Create package meta-data objects
		theSignaturePackage.createPackageContents();
		theConnectorGeneratorPackage.createPackageContents();
		theAuxiliaryPackage.createPackageContents();
		theDRDPackage.createPackageContents();
		theCommunicationStylePackage.createPackageContents();
		theFeaturePackage.createPackageContents();
		theConnectorArchitecturePackage.createPackageContents();
		theElementArchitecturePackage.createPackageContents();

		// Initialize created meta-data
		theSignaturePackage.initializePackageContents();
		theConnectorGeneratorPackage.initializePackageContents();
		theAuxiliaryPackage.initializePackageContents();
		theDRDPackage.initializePackageContents();
		theCommunicationStylePackage.initializePackageContents();
		theFeaturePackage.initializePackageContents();
		theConnectorArchitecturePackage.initializePackageContents();
		theElementArchitecturePackage.initializePackageContents();

		// Mark meta-data to indicate it can't be changed
		theSignaturePackage.freeze();

  
		// Update the registry and return the package
		EPackage.Registry.INSTANCE.put(SignaturePackage.eNS_URI, theSignaturePackage);
		return theSignaturePackage;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getSignatureTerm() {
		return signatureTermEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getSignatureTerm_Name() {
		return (EAttribute)signatureTermEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getSignatureTerm_Parameters() {
		return (EReference)signatureTermEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getSignature() {
		return signatureEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getSignatureTermParameter() {
		return signatureTermParameterEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getSignatureTermParameter_Value() {
		return (EReference)signatureTermParameterEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public SignatureFactory getSignatureFactory() {
		return (SignatureFactory)getEFactoryInstance();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private boolean isCreated = false;

	/**
	 * Creates the meta-model objects for the package.  This method is
	 * guarded to have no affect on any invocation but its first.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void createPackageContents() {
		if (isCreated) return;
		isCreated = true;

		// Create classes and their features
		signatureTermEClass = createEClass(SIGNATURE_TERM);
		createEAttribute(signatureTermEClass, SIGNATURE_TERM__NAME);
		createEReference(signatureTermEClass, SIGNATURE_TERM__PARAMETERS);

		signatureEClass = createEClass(SIGNATURE);

		signatureTermParameterEClass = createEClass(SIGNATURE_TERM_PARAMETER);
		createEReference(signatureTermParameterEClass, SIGNATURE_TERM_PARAMETER__VALUE);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private boolean isInitialized = false;

	/**
	 * Complete the initialization of the package and its meta-model.  This
	 * method is guarded to have no affect on any invocation but its first.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void initializePackageContents() {
		if (isInitialized) return;
		isInitialized = true;

		// Initialize package
		setName(eNAME);
		setNsPrefix(eNS_PREFIX);
		setNsURI(eNS_URI);

		// Create type parameters

		// Set bounds for type parameters

		// Add supertypes to classes
		signatureTermEClass.getESuperTypes().add(this.getSignature());

		// Initialize classes and features; add operations and parameters
		initEClass(signatureTermEClass, SignatureTerm.class, "SignatureTerm", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getSignatureTerm_Name(), ecorePackage.getEString(), "name", null, 1, 1, SignatureTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
		initEReference(getSignatureTerm_Parameters(), this.getSignatureTermParameter(), null, "parameters", null, 0, -1, SignatureTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

		initEClass(signatureEClass, Signature.class, "Signature", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(signatureTermParameterEClass, SignatureTermParameter.class, "SignatureTermParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getSignatureTermParameter_Value(), this.getSignature(), null, "value", null, 1, 1, SignatureTermParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
	}

} //SignaturePackageImpl
